package com.jrx.anytxn.reporting.job.xib.step;

import com.jrx.anytxn.reporting.entity.MEastVStzfxxb;
import com.jrx.anytxn.reporting.mapper.ext.ExtMEastVStzfxxbMapper;
import org.springframework.batch.item.ItemWriter;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @comment: 受托支付信息Writer
 * @author: liuzb
 * @date: 2021/8/23
 */
@Service
public class EntrustmentReportingWriter implements ItemWriter<MEastVStzfxxb> {

    @Resource
    ExtMEastVStzfxxbMapper extMEastVStzfxxbMapper;

    @Override
    public void write(List<? extends MEastVStzfxxb> list) throws Exception {
        for (MEastVStzfxxb item : list) {
            extMEastVStzfxxbMapper.insertSelective(item);
        }
    }

}
